export function configForm () {
  return  [
    {
      fieldName: '流程标题',
      field: 'name',
      value: '',
      type: 'input',
      placeholder: '请输入内容'
    },
    {
      fieldName: '任务名称',
      field: 'taskName',
      value: '',
      type: 'input',
      placeholder: '请输入内容'
    }
  ]
}

export function generateColumns() {
  return [
    // {
    //   type: "selection",
    //   width: 60,
    //   align: "left",
    //   // fixed: "left"
    // },
    {
      title: "序号",
      type: 'index',
      align: "center",
      // fixed: "left",
      width: 60
      // resizable:true
    },
    {
      title: "主题",
      key: "serviceTypeStr",
      minWidth: 100,
      resizable:true
    },
    {
      title: "流程标题",
      key: "name",
      minWidth: 240,
      resizable:true
    },
    
    {
      title: "任务名称",
      key: "taskName",
      minWidth: 200
      // resizable:true
    },
    
    {
      title: "创建人",
      key: "startUserName",
      minWidth: 160
      // resizable:true
    },
    {
      title: "创建时间",
      key: "startTime",
      minWidth: 160
      // resizable:true
    },
      /*    {
      title: '状态',
      key: 'suspensionState',
      render: (h, { row }) => {
        return this.bpmn_stateHandle(h, row)
      }
    },*/
    {
      title: '操作',
      align: "center",
      fixed: "right",
      minWidth: 60,
      render: (h, {row}) => {
          return h("RowTools", {
            props: {
              data: [
                {
                  type: 'icon',
                  icon: 'md-eye',
                  text: '查看',
                  handle: () => {
                    this.detailHandle(row);
                  }
                },
              ]
            }
          });
        }
    }
  ]
}


export const detailField = {
  
};
